package homework.ooday02.person;

public class ExtendsTest {
    public static void main(String[] args) {
        Student stu = new Student();
        stu.name = "学生";
        stu.age = 18;
        stu.address = "ZX";
        stu.className = "2302";
        stu.stuId = "100";
        stu.eat();
        stu.sleep();
        stu.sayHi();
        stu.study();

        Teacher tea = new Teacher("老师",40,"AS",3000);
        tea.eat();
        tea.sleep();
        tea.sayHi();
        tea.teach();

        Doctor doc = new Doctor("医生",60,"QW","qqqqqq");
        doc.eat();
        doc.sleep();
        doc.sayHi();
        doc.cut();

    }
}
